package com.cmwa.solution.business.investTrade.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cmwa.solution.base.controller.BaseController;
import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.investTrade.entity.OrderRiskManageVo;
import com.cmwa.solution.business.investTrade.service.OrderRiskManageService;

/**
 * 订单风控管理控制器
 * @author ex-chenbq
 *
 */
@Controller
@RequestMapping("/business/orderRiskMgr")
public class OrderRiskMgrController extends BaseController {

	private final static String JSP_PATH = "business/investTrade/";
	@Resource
	private OrderRiskManageService orderRiskManageService;
		
	/**
	 * 跳转订单风控管理页面
	 * @param model
	 * @return
	 */
	@RequestMapping("/orderRiskMgrListView")
	public String orderRiskMgrListView(ModelMap model) {
		return JSP_PATH + "orderRiskMgrList";
	}
	
	/**
	 * 订单风控管理数据分页查询
	 * @param param
	 * @return
	 */
	@RequestMapping("/orderRiskMgrListPage")
	@ResponseBody
	public Page<OrderRiskManageVo> orderRiskMgrListPage(SearchParam param) {
		Page<OrderRiskManageVo> list = orderRiskManageService.queryOrderRiskManageListPage(param);
		return list;
	}
}

